package com.tars.txappstart.controller;

import com.tars.txappstart.service.StartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Franz 2022/3/14
 */
@RestController
@RequestMapping("/start")
public class StartController {

    @Autowired
    private StartService service;

    @RequestMapping("/test/{payment}/{order}")
    public Boolean start(@PathVariable("payment")Integer payment,@PathVariable("order") Integer order){
        service.startService(payment, order);
        return true;
    }
}
